package com.test.hibernate.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Blob;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author liuziyang
 * @create 2018-09-14 22:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class News {
    private Integer id;
    private String title;
    private String author;
    private Date date;
    //该属性为 title:author
    private String desc;
    //大文本
    private String content;
    //二进制数据
    private Blob imag;
}
